<!DOCTYPE html>
<html lang="en">
<head ul_head=2rG0mD >
    <meta charset="UTF-8">
    <title>CMS分销产品管理</title>
    <?php echo Common::css("v1/base.css,v1/admin.css,v1/home.css")?>
</head>
<body>
<div>
    <div id="tab_product_block" class="block-tab-container">
        <div class="block-tab-bar cl">
            {if !empty($line_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_line" target="frm1">
            <span class="item">线路</span>
            </a>
            {/if}
            {if !empty($hotel_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_hotel" class="item" target="frm2">
            <span class="item">酒店</span>
            </a>
            {/if}
            {if !empty($spot_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_spot" class="item" target="frm3">
            <span class="item">门票</span>
            </a>
            {/if}
            {if !empty($car_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_car" class="item" target="frm4">
            <span class="item">租车</span>
            </a>
            {/if}
            {if !empty($tuan_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_tuan" class="item" target="frm5">
            <span class="item">团购</span>
            </a>
            {/if}
            {if !empty($techan_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_techan" class="item" target="frm6">
            <span class="item">特产</span>
            </a>
            {/if}
            {if !empty($outdoor_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_outdoor" class="item" target="frm7">
            <span class="item">户外</span>
            </a>
            {/if}

            {if !empty($tongyong_product)}
            {loop $tongyong_list $t}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_tongyong?typeid={$t['id']}" class="item" target="frm8{$t['id']}">
                <span class="item">{$t['modulename']}</span>
            </a>
            {/loop}
            {/if}

            {if !empty($food_product)}
            <a href="javascript:;" _href="/plugins/supplier/index/cms_food" class="item" target="frm9">
                <span class="item">美食</span>
            </a>
            {/if}

        </div>

        {if !empty($line_product)}
        <div class="block-tab-wrap">
           <iframe src="/plugins/supplier/index/cms_line" style="border:0;overflow: auto;width: 100%;" name="frm1"></iframe>
        </div>
        {/if}
        <!--    酒店    -->
        {if !empty($hotel_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_hotel" style="border:0;overflow: auto;width: 100%;" name="frm2"></iframe>
        </div>
        {/if}
<!--        门票-->
        {if !empty($spot_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_spot" style="border:0;overflow: auto;width: 100%;" scrolling="yes" name="frm3"></iframe>
        </div>
        {/if}
<!--        租车-->
        {if !empty($car_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_car" style="border:0;overflow: auto;width: 100%;" name="frm4"></iframe>
        </div>
        {/if}
<!--        团购-->
        {if !empty($tuan_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_tuan" style="border:0;overflow: auto;width: 100%;" name="frm5"></iframe>
        </div>
        {/if}
<!--        特产-->
        {if !empty($techan_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_techan" style="border:0;overflow: auto;width: 100%;" name="frm6"></iframe>
        </div>
        {/if}
<!--        户外-->
        {if !empty($outdoor_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_outdoor" style="border:0;overflow: auto;width: 100%;" name="frm7"></iframe>
        </div>
        {/if}


        {if !empty($tongyong_product)}
        {loop $tongyong_list $t}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_tongyong?typeid={$t['id']}" style="border:0;overflow: auto;width: 100%;" name="frm8{$t['id']}"></iframe>
        </div>
        {/loop}
        {/if}

<!--        美食-->
        {if !empty($outdoor_product)}
        <div class="block-tab-wrap">
            <iframe src="/plugins/supplier/index/cms_food" style="border:0;overflow: auto;width: 100%;" name="frm9"></iframe>
        </div>
        {/if}



        <!-- 列表操作、翻页 -->

    </div>

</div>
<?php echo Common::js("v1/jquery.min.js,v1/admin.js")?>
<script src="{$GLOBALS['cfg_res_url']}/js/v1/layer/layer.js"></script>
<script src="{$GLOBALS['cfg_res_url']}/js/v1/laypage/laypage.js"></script>
<script>

    $(function(){

        function sizeHeight(){

            var pmHeight = $(window).height();
            console.log(pmHeight);
            var contentHeight=pmHeight-10;
            $("iframe").height(contentHeight);
        }

        //高度改变
        $(window).resize(function(){

            sizeHeight()
        })
        sizeHeight();



        //切换
        $('#tab_product_block').Huitab({
            tabBar:'.block-tab-bar span',
            tabCon:".block-tab-wrap",
            className:"on"
        });

    })

</script>

</body>
</html>